package kr.or.kosta.otr.persistence.comment;

import java.sql.SQLException;
import java.util.ArrayList;

import kr.or.kosta.otr.vo.CommentVO;

public interface CommentDao {
	int writeComment(CommentVO vo) throws SQLException;
	void deleteComment(int commentId) throws SQLException;
	void updateComment(CommentVO vo) throws SQLException;
	void updateDepth(int commentId) throws SQLException;
	void updateStep(CommentVO vo) throws SQLException;
	CommentVO getOneComment(int commentId) throws SQLException;
	ArrayList<CommentVO> getAGroupOfComments(int boardId) throws SQLException;
	int getMaxRef(int boardId) throws SQLException;
	int getMaxStep(int ref) throws SQLException;
}
